package com.syzygy.service;

import com.github.pagehelper.PageInfo;
import com.syzygy.mapper.PictureMapper;
import com.syzygy.pojo.Picture;

import java.util.List;
import java.util.Map;

public interface PictureService {
    List<String> getAllPictureId();

    Picture getPictureById(String pictureId);

//    List<Picture> getAllPictureAndUser();
    List<Picture> getAllPicture();

    int uploadPicture(String pictureId,String pictureDocumentName, int userId, int typeId, double price,String describe);

    List<Picture> getPicturesByUserId(int userId);

    List<Picture> getPicturesByTypeId(int typeId);

    int updatePictureByPictureId(String describe,int typeId,double price,String pictureId);

    int deletePictureByPictureId(String pictureId);

    int updateStateByPictureId(String state, String pictureId);

    PageInfo<Picture> getPicturePage(Integer pageNumber);
}
